powerpc: Fix -mcpu= options for SPE-only compiler
authorBen Hutchings <ben@decadent.org.uk>
Wed, 26 Dec 2018 00:00:40 +0000 (00:00 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 21 Aug 2019 12:48:11 +0000 (13:48 +0100)
commit55db0c980291709c97163bda5359298938668f46
treea0b73d4ee0a102c6f23233dab63abd2372a6f3e3
parent17783ef04dffec48540245adb6d646b3e0ddfe82
powerpc: Fix -mcpu= options for SPE-only compiler

GCC for Debian's "powerpcspe" architecture only supports 32-bit
SPE targets, and using -mcpu=powerpc or -mcpu=powerpc64 is a fatal
error.

* Change the test for a biarch compiler to pass both the -m32 and -m64
  options, so that it doesn't catch 32-bit-only compilers
* Add an ifdef CONFIG_PPC64 around the 64-bit CPU option definitions

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-fix-mcpu-options-for-spe-only-compiler.patch
arch/powerpc/Makefile